package luccy.desc.impl;

import java.lang.reflect.Method;

import luccy.desc.MethodDesc;

public class MethodDescImpl implements MethodDesc {

	private Method method;

	private String methodName;

	private Class returnType;

	private Class[] parameterTypes;

	public MethodDescImpl(Method method) {
		this.method = method;
		this.methodName = method.getName();
		this.returnType = method.getReturnType();
		this.parameterTypes = method.getParameterTypes();
	}

	public Method getMethod() {
		return method;
	}

	public void setMethod(Method method) {
		this.method = method;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public Class[] getParameterTypes() {
		return parameterTypes;
	}

	public void setParameterTypes(Class[] parameterTypes) {
		this.parameterTypes = parameterTypes;
	}

	public Class getReturnType() {
		return returnType;
	}

	public void setReturnType(Class returnType) {
		this.returnType = returnType;
	}

}
